function abc1(fn, params) {
}
var x;
x = function (obj) { throw new Error(''); };
x = { abc: { name: 'string' } };
abc1(function () { return 'string'; }, '123');
// 元组类型 : 数组
// 数组每个值的类型
var tuble;
tuble = [10, '234'];
var data;
data = [{ data: [{ name: 123 }] }, 10];
data[0].data.map(function (item) { return item.name.toFixed(2); });
// 枚举类型 
// 状态码 404 200 401(未授权) 403 (没有权限)
// 枚举关键字 enum
// 类型
var EYear;
(function (EYear) {
    EYear[EYear["No1"] = 0] = "No1";
    EYear[EYear["No2"] = 1] = "No2";
    EYear[EYear["No3"] = 2] = "No3";
    EYear[EYear["No4"] = 3] = "No4";
})(EYear || (EYear = {}));
var years;
years = EYear.No1;
// 输入一个季度 如果是第一季度 打印1
function getYEARS(y) {
    if (y === EYear.No1) {
        console.log(EYear.No1);
    }
}
// 应用场景 : react redux : action :  {type : }
getYEARS(EYear.No1);
